<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Agents Language: C:/Users/Caio/Dropbox/Mestrado/agents-language/Compiladores/Compiladores/ASTNode.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Agents Language
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A Programming Language for Robots</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_5529265c7de0d44fe03237e3df773496.html">Compiladores</a></li><li class="navelem"><a class="el" href="dir_64a977d312ff032528a197ff58294cfe.html">Compiladores</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ASTNode.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_a_s_t_node_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef __AST_NODE_H</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define __AST_NODE_H</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_common_8h.html">Common.h</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;parser.tab.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_i_visitor_8h.html">IVisitor.h</a>&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">class </span><a class="code" href="class_i_visitor.html">IVisitor</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html">   22</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_a_s_t_node.html">ASTNode</a></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#a432e04f7a77fd5cc0c2b56d0cd30dfde">   28</a></span>&#160;    std::string <a class="code" href="class_a_s_t_node.html#a432e04f7a77fd5cc0c2b56d0cd30dfde">name</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#ac97e1fe3b390fdb1b2687c55044bbb42">   32</a></span>&#160;    <a class="code" href="_common_8h.html#a54fdbf378167a255e7d14da2db6a5f75">Kind</a> <a class="code" href="class_a_s_t_node.html#ac97e1fe3b390fdb1b2687c55044bbb42">kind</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#a26837b8b224142ab143a69643212e488">   36</a></span>&#160;    <a class="code" href="_common_8h.html#a7b97d4a9bb8e67a5f5257fe024b6a595">Type</a> <a class="code" href="class_a_s_t_node.html#a26837b8b224142ab143a69643212e488">type</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#a1baef87f683b1a8c639420ed2a8dc23f">   40</a></span>&#160;    <a class="code" href="class_value.html">Value</a> <a class="code" href="class_a_s_t_node.html#a1baef87f683b1a8c639420ed2a8dc23f">value</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#aae3c9d2b41ce6ba291a3b605c9eb34c5">   44</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_a_s_t_node.html#aae3c9d2b41ce6ba291a3b605c9eb34c5">lineNumber</a>; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#aaa1e479bfeb485d93a4866f9c2daf171">   51</a></span>&#160;    <a class="code" href="class_a_s_t_node.html">ASTNode</a> *<a class="code" href="class_a_s_t_node.html#aaa1e479bfeb485d93a4866f9c2daf171">parent</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#a0ee6fbcf102db5dfb1b8b47336bb9d24">   55</a></span>&#160;    <a class="code" href="class_a_s_t_node.html">ASTNode</a> *<a class="code" href="class_a_s_t_node.html#a0ee6fbcf102db5dfb1b8b47336bb9d24">children</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_a_s_t_node.html#a84226c13622be7066f1cb22a083fda35">   59</a></span>&#160;    <a class="code" href="class_a_s_t_node.html">ASTNode</a> *<a class="code" href="class_a_s_t_node.html#a84226c13622be7066f1cb22a083fda35">sibling</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="class_a_s_t_node.html#a1196ed4f19c0b62cdc42fe35946b91d2">ASTNode</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="class_a_s_t_node.html#a1196ed4f19c0b62cdc42fe35946b91d2">ASTNode</a>(std::string <a class="code" href="class_a_s_t_node.html#a432e04f7a77fd5cc0c2b56d0cd30dfde">name</a>, <span class="keywordtype">int</span> <a class="code" href="class_a_s_t_node.html#ac97e1fe3b390fdb1b2687c55044bbb42">kind</a>, <span class="keywordtype">int</span> <a class="code" href="class_a_s_t_node.html#a26837b8b224142ab143a69643212e488">type</a>, <span class="keywordtype">int</span> <a class="code" href="class_a_s_t_node.html#aae3c9d2b41ce6ba291a3b605c9eb34c5">lineNumber</a>);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="class_a_s_t_node.html#a41a691f37fa038eb183280effeb8ba4e">~ASTNode</a>();</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_s_t_node.html#a7798cbedd1944b006e4cd4ab81560901">AddSibling</a>(<a class="code" href="class_a_s_t_node.html">ASTNode</a> *<a class="code" href="class_a_s_t_node.html#a84226c13622be7066f1cb22a083fda35">sibling</a>);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_s_t_node.html#a87d22348e557f7978748c1083bcbfd1d">AddChild</a>(<a class="code" href="class_a_s_t_node.html">ASTNode</a> *child);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_s_t_node.html#ada1da03eeb02751dc6a5ac2bce3c56d4">Accept</a>(<a class="code" href="class_i_visitor.html">IVisitor</a> *visitor);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;};</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_a_s_t_node_html"><div class="ttname"><a href="class_a_s_t_node.html">ASTNode</a></div><div class="ttdoc">Abstract Syntax Tree Node. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:22</div></div>
<div class="ttc" id="class_a_s_t_node_html_aaa1e479bfeb485d93a4866f9c2daf171"><div class="ttname"><a href="class_a_s_t_node.html#aaa1e479bfeb485d93a4866f9c2daf171">ASTNode::parent</a></div><div class="ttdeci">ASTNode * parent</div><div class="ttdoc">Pointer to node parent. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:51</div></div>
<div class="ttc" id="class_a_s_t_node_html_a26837b8b224142ab143a69643212e488"><div class="ttname"><a href="class_a_s_t_node.html#a26837b8b224142ab143a69643212e488">ASTNode::type</a></div><div class="ttdeci">Type type</div><div class="ttdoc">Node type. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:36</div></div>
<div class="ttc" id="class_a_s_t_node_html_a7798cbedd1944b006e4cd4ab81560901"><div class="ttname"><a href="class_a_s_t_node.html#a7798cbedd1944b006e4cd4ab81560901">ASTNode::AddSibling</a></div><div class="ttdeci">void AddSibling(ASTNode *sibling)</div><div class="ttdoc">Add sibiling to the current node. </div><div class="ttdef"><b>Definition:</b> ASTNode.cpp:41</div></div>
<div class="ttc" id="class_a_s_t_node_html_a87d22348e557f7978748c1083bcbfd1d"><div class="ttname"><a href="class_a_s_t_node.html#a87d22348e557f7978748c1083bcbfd1d">ASTNode::AddChild</a></div><div class="ttdeci">void AddChild(ASTNode *child)</div><div class="ttdoc">Add child to the current node. </div><div class="ttdef"><b>Definition:</b> ASTNode.cpp:59</div></div>
<div class="ttc" id="class_a_s_t_node_html_a1baef87f683b1a8c639420ed2a8dc23f"><div class="ttname"><a href="class_a_s_t_node.html#a1baef87f683b1a8c639420ed2a8dc23f">ASTNode::value</a></div><div class="ttdeci">Value value</div><div class="ttdoc">Node value. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:40</div></div>
<div class="ttc" id="_common_8h_html_a7b97d4a9bb8e67a5f5257fe024b6a595"><div class="ttname"><a href="_common_8h.html#a7b97d4a9bb8e67a5f5257fe024b6a595">Type</a></div><div class="ttdeci">enum TypeEnum Type</div><div class="ttdoc">Node value type enumeration. </div></div>
<div class="ttc" id="class_value_html"><div class="ttname"><a href="class_value.html">Value</a></div><div class="ttdoc">Store a value from any kind. </div><div class="ttdef"><b>Definition:</b> Value.h:17</div></div>
<div class="ttc" id="_i_visitor_8h_html"><div class="ttname"><a href="_i_visitor_8h.html">IVisitor.h</a></div><div class="ttdoc">IVisitor interface header. </div></div>
<div class="ttc" id="_common_8h_html"><div class="ttname"><a href="_common_8h.html">Common.h</a></div><div class="ttdoc">Common enumerations definitions. </div></div>
<div class="ttc" id="class_a_s_t_node_html_ac97e1fe3b390fdb1b2687c55044bbb42"><div class="ttname"><a href="class_a_s_t_node.html#ac97e1fe3b390fdb1b2687c55044bbb42">ASTNode::kind</a></div><div class="ttdeci">Kind kind</div><div class="ttdoc">Node kind. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:32</div></div>
<div class="ttc" id="class_a_s_t_node_html_ada1da03eeb02751dc6a5ac2bce3c56d4"><div class="ttname"><a href="class_a_s_t_node.html#ada1da03eeb02751dc6a5ac2bce3c56d4">ASTNode::Accept</a></div><div class="ttdeci">void Accept(IVisitor *visitor)</div><div class="ttdoc">Call the apropriate visit function of the visitor based on the node kind. </div><div class="ttdef"><b>Definition:</b> ASTNode.cpp:81</div></div>
<div class="ttc" id="class_a_s_t_node_html_a1196ed4f19c0b62cdc42fe35946b91d2"><div class="ttname"><a href="class_a_s_t_node.html#a1196ed4f19c0b62cdc42fe35946b91d2">ASTNode::ASTNode</a></div><div class="ttdeci">ASTNode()</div><div class="ttdoc">ASTNode default constructor. </div><div class="ttdef"><b>Definition:</b> ASTNode.cpp:10</div></div>
<div class="ttc" id="class_a_s_t_node_html_a432e04f7a77fd5cc0c2b56d0cd30dfde"><div class="ttname"><a href="class_a_s_t_node.html#a432e04f7a77fd5cc0c2b56d0cd30dfde">ASTNode::name</a></div><div class="ttdeci">std::string name</div><div class="ttdoc">Node name. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:28</div></div>
<div class="ttc" id="class_i_visitor_html"><div class="ttname"><a href="class_i_visitor.html">IVisitor</a></div><div class="ttdoc">Interface for a AST node visitor. </div><div class="ttdef"><b>Definition:</b> IVisitor.h:19</div></div>
<div class="ttc" id="class_a_s_t_node_html_a0ee6fbcf102db5dfb1b8b47336bb9d24"><div class="ttname"><a href="class_a_s_t_node.html#a0ee6fbcf102db5dfb1b8b47336bb9d24">ASTNode::children</a></div><div class="ttdeci">ASTNode * children</div><div class="ttdoc">Pointer to node children. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:55</div></div>
<div class="ttc" id="class_a_s_t_node_html_aae3c9d2b41ce6ba291a3b605c9eb34c5"><div class="ttname"><a href="class_a_s_t_node.html#aae3c9d2b41ce6ba291a3b605c9eb34c5">ASTNode::lineNumber</a></div><div class="ttdeci">int lineNumber</div><div class="ttdoc">Node line number declaration. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:44</div></div>
<div class="ttc" id="class_a_s_t_node_html_a84226c13622be7066f1cb22a083fda35"><div class="ttname"><a href="class_a_s_t_node.html#a84226c13622be7066f1cb22a083fda35">ASTNode::sibling</a></div><div class="ttdeci">ASTNode * sibling</div><div class="ttdoc">Pointer to node sibling. </div><div class="ttdef"><b>Definition:</b> ASTNode.h:59</div></div>
<div class="ttc" id="class_a_s_t_node_html_a41a691f37fa038eb183280effeb8ba4e"><div class="ttname"><a href="class_a_s_t_node.html#a41a691f37fa038eb183280effeb8ba4e">ASTNode::~ASTNode</a></div><div class="ttdeci">~ASTNode()</div><div class="ttdoc">ASTNode destructor. </div><div class="ttdef"><b>Definition:</b> ASTNode.cpp:34</div></div>
<div class="ttc" id="_common_8h_html_a54fdbf378167a255e7d14da2db6a5f75"><div class="ttname"><a href="_common_8h.html#a54fdbf378167a255e7d14da2db6a5f75">Kind</a></div><div class="ttdeci">enum KindEnum Kind</div><div class="ttdoc">Node kind enumeration. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Sep 22 2014 10:41:47 for Agents Language by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>
